package com.kantboot.business.talent.service.impl;

import com.kantboot.business.talent.domain.entity.BusTalentExpertLevel;
import com.kantboot.business.talent.domain.vo.BusTalentExpertLevelHasCondition;
import com.kantboot.business.talent.repository.BusTalentExpertLevelHasConditionRepository;
import com.kantboot.business.talent.repository.BusTalentExpertLevelRepository;
import com.kantboot.business.talent.service.IBusTalentExpertLevelService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BusTalentExpertLevelServiceImpl implements IBusTalentExpertLevelService {

    @Resource
    private BusTalentExpertLevelRepository repository;

    @Resource
    private BusTalentExpertLevelHasConditionRepository hasConditionRepository;

    @Override
    public List<BusTalentExpertLevel> getAll() {
        return repository.findAll();
    }

    @Override
    public List<BusTalentExpertLevelHasCondition> getAllHasCondition() {
        return hasConditionRepository.findAll();
    }
}
